//
//  ResultTextBean.m
//  iiecg
//
//  Created by Shanlin on 2017/3/1.
//  Copyright © 2017年 Boundary Technology. All rights reserved.
//

#import "ResultTextBean.h"

@implementation ResultTextBean

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.cellType = CellTypeText;
    }
    return self;
}

-(CGFloat)cellHeight{
    CGFloat height = [self textHeight];
    if (height < 44) {
        height = scale(44);
    }else{
        height += scale(40);
    }
    return height;
}


-(UIColor *)textColor
{
    if (!_textColor) {
        _textColor = [UIColor darkTextColor];
    }
    return _textColor;
}

-(CGFloat)textHeight{
    return [self heightForString:self.text fontSize:15 andWidth:KScreenW - 32 ];
}
@end
